<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/expert.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../models/admin/js/expert.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>

</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>专家管理</span></div>
			<div class="m-add cen-container" ng-controller="expertListController">
							     
				<div class="whole-cover" ng-hide="isAddM"></div>
				<div class="add-form" ng-hide="isAddM">
					<div ng-show="isexpert"><span>专家类型</span><input type="radio" name="expertType" ng-value="true" id="hexpert" ng-model="isHExpert"/><label for="hexpert">高校专家</label><input type="radio" name="expertType" ng-value="false" id="mlexpert" ng-model="isHExpert"/><label for="mlexpert">中小学专家</label></div>
					<div ng-hide="isexpert"><span>专家类型</span><span style="width:120px;" ng-if="type=='0'">高校专家</span><span style="width:120px;" ng-if="type=='1'">中小学专家</span></div>
					<div>
						<span>编号</span><input type="text" ng-model="expertcode" placeholder="请输入编号"/>
					</div>
					<div ng-hide="isHExpert">
						<span>工作单位</span><input type="text" ng-model="workunit" placeholder="请输入工作单位"/>
					</div>
					<div>
						<span>姓名</span><input type="text" ng-model="expertname" placeholder="请输入姓名"/>
					</div>
					<div ng-show="isHExpert">
						<span>院校</span><input type="text" ng-model="academy" placeholder="请输入院校"/>
					</div>
					<div ng-show="isHExpert">
						<span>部门</span><input type="text" ng-model="department" placeholder="请输入部门"/>
					</div>
					<div ng-show="isHExpert">
						<span>性别</span>
						<select type="text" ng-model="sex" placeholder="请输入性别">
							<option value="">选择性别</option>
							<option value="男">男</option>
							<option value="女">女</option>
						</select>
					</div>
					<div ng-show="isHExpert" style="overflow:auto;">
						<span>出生年月</span>
						<p class="input-group" style="position:static; width:300px;">
							<input type="text" class="form-control" datepicker-popup="{{format}}" readOnly is-open="opened" min-date="minDate" max-date="'2017-12-30'" datepicker-options="dateOptions" date-disabled = "disabled(date,mode)" ng-required="true" close-text="Close" ng-model="birthday">
							<span class="input-group-btn">
								<button type="button" class="btn btn-default" ng-click="open($event)">
									<i class="glyphicon glyphicon-calendar"></i>
								</button>
							</span>
						</p>
					</div>
					<div ng-show="isHExpert">
						<span>学位</span><input type="text" ng-model="degree" placeholder="请输入学位"/>
					</div>
					<div>
						<span>职称</span><input type="text" ng-model="title" placeholder="请输入职称"/>
					</div>
					<div>
						<span>职务</span><input type="text" ng-model="post" placeholder="请输入职务"/>
					</div>
					<div ng-hide="isHExpert">
						<span>专业特长</span><input type="text" ng-model="speciality" placeholder="请输入专业特长"/>
					</div>
					<div ng-hide="isHExpert">
						<span>学术兼职</span><input type="text" ng-model="parttime" placeholder="请输入学术兼职"/>
					</div>
					<div ng-show="isHExpert">
						<span>研究领域</span><input type="text" ng-model="field" placeholder="请输入研究领域"/>
					</div>
					<div>
						<span>学科</span><input type="text" ng-model="subject" placeholder="请输入学科"/>
					</div>
					<div>
						<span>城市</span>
						<select type="text" class="fl select01" ng-model="city" placeholder="">
							<option value="">按城市查询</option>
							<option value="{{arraylist.pid}}" ng-repeat="arraylist in cityList">{{arraylist.name}}</option>						
						</select>
					</div>
					<div>
						<span>办公电话</span><input type="text" ng-model="officephone" placeholder="请输入办公电话"/>
					</div>
					<div>
						<span>手机</span><input type="text" ng-model="phone" placeholder="请输入手机"/>
					</div>
					<div ng-hide="isHExpert">
						<span>传真</span><input type="text" ng-model="fax" placeholder="请输入传真"/>
					</div>
					<div ng-show="isHExpert">
						<span>电子邮箱</span><input type="text" ng-model="email" placeholder="请输入电子邮箱"/>
					</div>
					<div><div ng-hide="isclickBtn" ng-click="addFirstZ()">确认</div><div ng-show="isclickBtn" ng-click="amendExpert()">修改</div><div ng-click="cancelAddM()">取消</div></div>
				</div>
				<div class="">
				</div>
				
				<div class="whole-cover" ng-hide="isAddPwd"></div>
				<div class="add-form pwdspan" ng-hide="isAddPwd">
					<div>修改密码</div>
					<div>
						<span>旧密码：</span><input type="password" ng-model="oldPwd" placeholder="请输入旧密码"/>
					</div>
					<div>
						<span>新密码：</span><input type="password" ng-model="newPwd01" placeholder="请输入新密码"/>
					</div>
					<div>
						<span>再次输入新密码：</span>
						<input type="password" ng-model="newPwd02" placeholder="请再次输入新密码"/>
					</div>
					<div><div ng-click="updatePwd()">修改密码</div><div ng-click="cancelAddPwd()">取消</div></div>
				</div>
				<div class="">
				</div>
					
				<div class="top-check">
					<select type="text" class="fl select01 mr15" ng-change="myFunc()" ng-model="sel" placeholder="">
						<option value="">请选择查询条件</option>
						<option value="0">按专家姓名</option>
						<option value="1">按学科</option>
						<option value="2">按城市</option>
					</select>
					<input type="text" class="fl"  ng-hide="isSel01" ng-model="expertname01" placeholder="请输入专家姓名"/>
					<select type="text" class="fl select01" ng-hide="isSel02" ng-model="subject01" placeholder="">
						<option value="">按学科查询</option>
						<option value="1">科学 </option>
						<option value="2">美术</option>
						<option value="3">数学</option>
						<option value="4">体育 </option>
						<option value="5">音乐</option>
						<option value="6">英语 </option>
						<option value="7">语文</option>
					</select>
					
					<select type="text" class="fl select01" ng-hide="isSel03" ng-model="city01" placeholder="">
						<option value="">按城市查询</option>
						<option value="{{arraylist.pid}}" ng-repeat="arraylist in cityList">{{arraylist.name}}</option>						
					</select>						
					
					<div class="fl expert-btn" ng-click="queryMain()">查询</div>
					<!-- <div class="add-apply" ng-click="">批量导入</div> -->
					<div class="add-apply" ng-click="addM()">添加专家</div>
				</div>
				<div class="list-content">
					<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
						<div class="detail-part" style=" border-right:1px solid #169BD5;">
							<ul>
								<li>编号</li>
								<li>工作单位</li>
								<li>姓名</li>
								<li>院校</li>
								<li>部门</li>
								<li>性别</li>
								<li>出生年月</li>
								<li>学位</li>
								<li>职称</li>
								<li>职务</li>
								<li>专业特长</li>
								<li>学术兼职</li>
								<li>研究领域</li>
								<li>学科</li>
								<li>城市</li>
								<li>办公电话</li>
								<li>手机</li>
								<li>传真</li>
								<li>电子邮箱</li>
							</ul>
							<ul>
								<li ng-bind="arraylist.expertcode?arraylist.expertcode:'-'" title="{{arraylist.expertcode}}">编号</li>
								<li ng-bind="arraylist.workunit?arraylist.workunit:'-'" title="{{arraylist.workunit}}">工作单位</li>
								<li ng-bind="arraylist.expertname?arraylist.expertname:'-'" title="{{arraylist.expertname}}">姓名</li>
								<li ng-bind="arraylist.academy?arraylist.academy:'-'" title="{{arraylist.academy}}">院校</li>
								<li ng-bind="arraylist.department?arraylist.department:'-'" title="{{arraylist.department}}">部门</li>
								<li ng-bind="arraylist.sex?arraylist.sex:'-'" title="{{arraylist.sex}}">性别</li>
								<li ng-bind="arraylist.birthday?arraylist.birthday:'-'" title="{{arraylist.birthday.substr(0,10)}}">出生年月</li>
								<li ng-bind="arraylist.degree?arraylist.degree:'-'" title="{{arraylist.degree}}">学历</li>
								<li ng-bind="arraylist.title?arraylist.title:'-'" title="{{arraylist.title}}">职称</li>
								<li ng-bind="arraylist.post?arraylist.post:'-'" title="{{arraylist.post}}">职务</li>
								<li ng-bind="arraylist.speciality?arraylist.speciality:'-'" title="{{arraylist.speciality}}">专业特长</li>
								<li ng-bind="arraylist.parttime?arraylist.parttime:'-'" title="{{arraylist.parttime}}">学术兼职</li>
								<li ng-bind="arraylist.field?arraylist.field:'-'" title="{{arraylist.field}}">研究领域</li>
								<li ng-bind="arraylist.subject?arraylist.subject:'-'" title="{{arraylist.subject}}">学科</li>
								<li ng-bind="arraylist.city?arraylist.city:'-'" title="{{arraylist.city}}">城市</li>
								<li ng-bind="arraylist.officephone?arraylist.officephone:'-'" title="{{arraylist.officephone}}">办公电话</li>
								<li ng-bind="arraylist.phone?arraylist.phone:'-'" title="{{arraylist.phone}}">手机</li>
								<li ng-bind="arraylist.fax?arraylist.fax:'-'" title="{{arraylist.fax}}">传真</li>
								<li ng-bind="arraylist.email?arraylist.email:'-'" title="{{arraylist.email}}">电子邮箱</li>
							</ul>
						</div>
						<dl class="oprate-box">
							<dt>操作</dt>
							<dd>
								<span class="action" ng-click="queryAuthExpertInfoById(arraylist.pid)">修改信息</span>
								<span class="action" ng-click="addPwd(arraylist.expertcode)">修改密码</span>
								<span class="action" ng-click="deleteExpert(arraylist.pid,$index)">删除</span>
							</dd>
						</dl>
					</div>
					<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
					<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
						暂无相关数据
					</div>
				</div>
		        <section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
		           <pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
		        </section>
			</div>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
